<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>蓝源Eloan-P2P平台(系统管理平台)</title>
<#include "../common/header.ftl"/>
<script type="text/javascript" src="/js/plugins/jquery.form.js"></script>
<script type="text/javascript" src="/js/plugins/jquery.twbsPagination.min.js"></script>

<script type="text/javascript">
	$(function() {

        //分页插件
        $("#pagination").twbsPagination({
            totalPages:${pageResult.totalPage}||1,
            visiblePages:5,
            startPage:${qo.currentPage},
        	first : "首页",
			prev : "上一页",
            next : "下一页",
            last : "最后一页",
        	onPageClick:function(event,page){
				$("#currentPage").val(page);
				$("#searchForm").submit();
       		 }
    	})

		$("#query").click(function(){
			$("#currentPage").val(1);
			$("#searchForm").submit();
		})

	});
</script>
</head>
<body>
	<div class="container">
		<#include "../common/top.ftl"/>
		<div class="row">
			<div class="col-sm-3">
				<#assign currentMenu="orderInfoVerify" />
				<#include "../common/menu.ftl" />
			</div>
			<div class="col-sm-9">
				<div class="page-header">
					<h3>订单发货列表</h3>
				</div>
                <form action="/orderinfo/orderInfoVerify" name="searchForm" id="searchForm" class="form-inline" method="post">
                    <input type="hidden" id="currentPage" name="currentPage" value="${(qo.currentPage)!'1'}" />
                    <div class="form-group">
                        <label>订单号</label>
                        <input type="text" class="form-control orderSn" name="orderSn" value='${qo.orderSn!''}'/>
                    </div>
                    <div class="form-group">
                        <label>收货人</label>
                        <input type="text" class="form-control consignee" name="consignee" value='${qo.consignee!''}'/>
                    </div>
                    <div class="form-group">
                        <button type="button" id="query" class="btn btn-success"><i class="icon-search"></i> 查询</button>
                    </div>
                </form>
				<div class="panel panel-default">
					<table class="table">
						<thead>
							<tr class="info">
								<th>订单号</th>
								<th>下单时间</th>
								<th>总金额</th>
								<th>订单状态</th>
								<th>收货人</th>
								<th>收货地址</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
						<#list pageResult.data as orderInfo>
							<tr>
								<td>${orderInfo.orderSn}</td>
								<td>${(orderInfo.orderTime?string('yyyy-MM-dd HH:mm:ss'))!""}</td>
								<td>${(orderInfo.orderAmount?string("##.##"))!''}</td>
								<td>${orderInfo.orderStatusDisplay}</td>
								<td>${orderInfo.consignee}</td>
								<td>${orderInfo.city}${orderInfo.district}${orderInfo.address}</td>
								<td><a href="/orderinfo/orderVerifyView?orderId=${orderInfo.id}" >
                                    <input type="button" class="btn btn-success" value="查看">
                                </a></td>
							</tr>
						</#list>
						</tbody>
					</table>
					<div style="text-align: center;">
						<ul id="pagination" class="pagination"></ul>
					</div>
				</div>
			</div>
		</div>

	</div>
</body>
</html>